import service from './index';
import { ICoJudgeParams, ICoManageParams,ICoManageList } from '../type';

export const coManage = {
  save: (data: ICoManageParams) => {
    return service({
      url: `/coManage/save`,
      method: 'post',
      data,
    });
  },
  saveBatch: (data: ICoManageList) => {
    return service({
      url: `/coManage/saveBatch`,
      method: 'post',
      data,
    });
  },
  judgeCoIsBegin: (params: ICoJudgeParams) => {
    return service({
      url: `/coManage/judgeIsBegin`,
      method: 'get',
      params,
    });
  },
}